home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac Power 1997 December
/
MACPOWER-1997-12.ISO.7z
/
MACPOWER-1997-12.ISO
/
AMUG
/
PROGRAMMING
/
Raven 1.2 Examples.sit
/
Raven 1.2 Examples
/
Quill
/
Source
/
DisabledHelpEditor.h
< prev
next >
Wrap
Text File
|
1997-02-05
|
2KB
|
92 lines
/*
* File: DisabledHelpEditor.h
* Summary: A view that knows how to edit a control's disabled help message.
* Written by: Jesse Jones
*
* Copyright ゥ 1997 Jesse Jones.
* For conditions of distribution and use, see copyright notice in ZTypes.h
*
* Change History (most recent first):
*
* <-> 2/05/97 JDJ Created
*/
#pragma once
#include <ZControl.h>
#include <ZListener.h>
#include "BasePaneEditor.h"
// ===================================================================================
// class CEditDisabledHelpCommand
// ===================================================================================
class CEditDisabledHelpCommand : public CBaseEditPaneCommand<TControl, SControlInfo> {
typedef CBaseEditPaneCommand<TControl, SControlInfo> Inherited;
//-----------------------------------
// Initialization/Destruction
//
public:
virtual ~CEditDisabledHelpCommand();
CEditDisabledHelpCommand(TControl* pane, const SControlInfo& oldInfo, const SControlInfo& newInfo);
//-----------------------------------
// Inherited API
//
public:
virtual void UpdatePane(const SControlInfo& newInfo);
};
// ===================================================================================
// CDisabledHelpEditor
// ===================================================================================
class CDisabledHelpEditor : public CBasePaneEditor<TControl, SControlInfo, CEditDisabledHelpCommand>, public MListener<SControlMessage> {
typedef CBasePaneEditor<TControl, SControlInfo, CEditDisabledHelpCommand> Inherited;
//-----------------------------------
// Initialization/Destruction
//
public:
virtual ~CDisabledHelpEditor();
CDisabledHelpEditor(TView* superView);
//-----------------------------------
// Inherited API
//
protected:
virtual SControlInfo GetEditorInfo() const;
virtual void SetEditorInfo(const SControlInfo& info);
virtual void OnReanimated();
virtual void OnBroadcast(const SControlMessage& mesg);
//-----------------------------------
// TReanimator Support
//
public:
static MReanimatable* Create(MReanimatable* parent);
//-----------------------------------
// Internal API
//
protected:
virtual void TogglePanes();
//-----------------------------------
// Member data
//
public:
ResType mType;
};